const express = require("express");
const router = express.Router();

router.get("/", async (req, res) => {
  const [menus] = await req.db.connection.query("SELECT * FROM menus");
  res.send({
    success: true,
    menus,
  });
});

module.exports = router;
